export class ResultModel {
  static isSuccess (data: ResultModel):boolean {
    return <boolean>(data && data.success)
  }

  static isSuccessPageInfo (data: ResultModel):boolean {
    return <boolean>(data && data.success && data.data && data.data.dataList)
  }

  constructor (
    public success?:boolean,
    public code?:string,
    public expressionInfo?:string,
    public message?:string,
    public data?:any
  ) {
    this.code = code
  }
}
